﻿# Bounce SSRS and Pre-Load the Report Manager (localhost/Reports)
# HT: http://www.pawlowski.cz/2011/07/solving-issue-long-starting-report-ssrs-2008/
if ((Get-Service -Include "ReportServer") -ne $null) {
	Write-Output "Restarting SSRS...";
	Restart-Service "ReportServer"; Start-Sleep 6;
	$browser= New-Object system.net.webClient;
	$browser.Credentials= [System.Net.CredentialCache]::DefaultNetworkCredentials;
	$browser.DownloadString("http://localhost/Reports");
} else {Write-Output "SSRS Not Present";};
Write-Output "Complete";